var verify_price_lock_change_price = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"T1", "MSG":"","DATA":"","SCRIPTNAME":"verify_price_lock_change_price.js"}');
//该商品已锁价

function checkPriceLock(priceLockList, retail_start_date, storeList) {
    for (var vplcp = 0; vplcp < priceLockList.length; vplcp++) {
        var priceLockListElement = priceLockList[vplcp];
        var club = priceLockListElement.club;
        if (!isNull(club) && (club.toUpperCase() === "ALL" || storeList.indexOf(parseInt(club)) !== -1)) {
            var eventExpDate = priceLockListElement.eventExpirationDate;
            if (!isNull(eventExpDate) && compareTimes(retail_start_date, eventExpDate) <= 0) {
                return true;
            }
        }
    }
    return false;
}

if (!isNull(retail_tax) && !isNull(priceLockList)) {

    if (!isNull(retail_start_date) && !isNull(currentTraitToStoreList) && checkPriceLock(priceLockList, retail_start_date, currentTraitToStoreList)) {
        verify_price_lock_change_price.CODE = 2;
        verify_price_lock_change_price.ACTION = 'risk';
        verify_price_lock_change_price.MSG = '该商品已锁价';
    }

}


JSON.stringify(verify_price_lock_change_price);